import request from '@/utils/request'
// 获取logo和名称
export const getSysInfo = async () => {
  return await request.get('/system/platform/logo')
}
// 上传
export const upload = async (data: FormData) => {
  return await request.post('/system/platform/upload', {
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
// 提交
export const save = async (data: any) => {
  return await request.post('/system/platform/save', {
    data
  })
}
// 重置
export const reset = async () => {
  return await request.get('/system/platform/reset')
}
